import {
	defineStore
} from 'pinia'

export const useCounterStore = defineStore('todos', {
	state: () => ({
		// 加载中
		loading: false,
	}),
	getters: {
		getLoading(state) {
			return state.loading
		}
	},
	actions: {
		setLoading(data) {
			this.loading = data
		}
	},
})
